chore(mship): revert the credential-continue questions flow - #6405
chore(mship): revert the credential-continue questions flow#6405waleedlatif1 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Desktop & OAuth handoff no longer track Trello authorize/callback drops custom Questions revert to immediate single-select advance and inline card markup (shared Reviewed by Cursor Bugbot for commit 044937b. Configure here. |
Greptile SummaryThe PR reverts the credential-continuation question and OAuth correlation flow while restoring the previous singleton credential-tag UI and synchronized Mothership tool contract.
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking need to restore context-safe escaping for Trello callback URLs. The reverted credential and desktop OAuth paths retain downstream authorization and contract coordination; the remaining issue is that unusual but accepted base-URL configuration can break the Trello callback script. Files Needing Attention: apps/sim/app/api/auth/trello/callback/route.ts
|
| Filename | Overview |
|---|---|
| apps/sim/app/api/auth/trello/callback/route.ts | Restores fixed workspace redirects but no longer escapes the configured base URL before embedding it in callback JavaScript. |
| apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags/special-tags.tsx | Reverts batched credential continuation UI to singleton credential tags while retaining server-enforced authorization on desktop OAuth scope. |
| apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/question/question.tsx | Restores immediate single-select progression and the prior multi-select submission behavior. |
| apps/desktop/src/main/handoff.ts | Removes chat-attempt correlation while preserving state, kind, expiry, and constant-time handoff validation. |
| apps/sim/lib/copilot/generated/tool-schemas-v1.ts | Reverts the generated Mothership schema in coordination with the companion service contract. |
Reviews (1): Last reviewed commit: "chore(mship): revert the credential-cont..." | Re-trigger Greptile
| statusEl.textContent = 'Success! Redirecting...'; | ||
| setTimeout(function() { | ||
| window.location.href = '${successReturnUrl}'; | ||
| window.location.href = '${baseUrl}/workspace?trello_connected=true'; |
There was a problem hiding this comment.
If NEXT_PUBLIC_APP_URL contains JavaScript-significant characters, the callback embeds the unescaped value directly in its script, producing malformed JavaScript that prevents the Trello connection from being stored or redirected; markup in the configured value is also inserted into the callback document.
Knowledge Base Used: Authentication and Authorization
|
Keeping the change after all — closing this revert. |
Summary
Notes
special-tags.tsx, preservedtool-catalog-v1.ts/tool-schemas-v1.tsrevert in lockstep with the mothership contract;sync-tool-catalog.ts --checkagainst the reverted contract exits cleanType of Change
Testing
turbo run type-check— 23/23 workspaces passcheck:api-validation,check:desktop-bridge,check:desktop-ipcpasslib/copilot,lib/credentials,executor/handlers/{mothership,pi},api/mothership,home/; desktophandoff+ipc82 passChecklist